package com.ymttest.common.enums;

public enum SalesRefundStatusEnum {
	/** 
	  终止(如拒绝退货)
	 
	*/
	Fail(-10),

	/** 
	 处理中
	 
	*/
	Processing(1),
	
	/** 
	 处理成功
	 
	*/
	Success(10);

	private int intValue;
	private static java.util.HashMap<Integer, SalesRefundStatusEnum> mappings;
	private synchronized static java.util.HashMap<Integer, SalesRefundStatusEnum> getMappings()
	{
		if (mappings == null)
		{
			mappings = new java.util.HashMap<Integer, SalesRefundStatusEnum>();
		}
		return mappings;
	}

	private SalesRefundStatusEnum(int value)
	{
		intValue = value;
		SalesRefundStatusEnum.getMappings().put(value, this);
	}

	public int getValue()
	{
		return intValue;
	}

	public static SalesRefundStatusEnum forValue(int value)
	{
		return getMappings().get(value);
	}
}
